<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<title>实名认证结果页</title>
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
		<meta content="yes" name="apple-mobile-web-app-capable">
		<meta content="black" name="apple-mobile-web-app-status-bar-style">
		<meta content="telephone=no" name="format-detection">
		<link rel="stylesheet" href="css/weui.css">
		<link rel="stylesheet" href="css/jquery-weui.css">
		<link rel="stylesheet" href="css/style.css">
	</head>

	<body>
		<div class="head">
			<a href="securitySetting.html" class="return">返回</a>实名认证结果
		</div>
		<div class="overlay">
			<div class="page">

				<div class="weui-cells f15 login">

					<div class="weui-cell">
						<div class="weui-cell__hd">
							<img src="images/icon32.png" width="26" height="26">
						</div>
						<div class="weui-cell__bd">
							张*小
						</div>
					</div>

					<div class="weui-cell">
						<div class="weui-cell__hd">
							<img src="images/icon33.png" width="26" height="26">
						</div>
						<div class="weui-cell__bd">
							445281********5432
						</div>
					</div>
				</div>

				<div class="weui-cells mt10 weui-cells_form">

					<div class="weui-cell">
						<div class="weui-cell__bd">
							<div class="weui-uploader">
								<div class="weui-uploader__hd">
									<p class="weui-uploader__title">身份证照片（上传正反面及手持身份证照）</p>
								</div>
								<div class="weui-uploader__bd">
									<ul class="weui-uploader__files" id="uploaderFiles2">
										<li class="weui-uploader__file" style="background-image:url(images/example.jpg)"></li>
										<li class="weui-uploader__file" style="background-image:url(images/example2.jpg)"></li>
										<li class="weui-uploader__file" style="background-image:url(images/example3.jpg)"></li>
									</ul>
								</div>
							</div>
						</div>
					</div>
				</div>

			</div>

			<div class="weui-gallery" id="gallery">
				<span class="weui-gallery__img" id="galleryImg" style="background-image:url(./images/pic_160.png)"></span>
			</div>
		</div>
		<script src="js/jquery.min.js"></script>
		<script src="js/jquery-weui.min.js"></script>
		<script>
			$(function() {
				var tmpl = '<li class="weui-uploader__file" style="background-image:url(#url#)"></li>',
					$gallery = $("#gallery"),
					$galleryImg = $("#galleryImg"),
					$uploaderInput = $("#uploaderInput"),
					$uploaderFiles = $("#uploaderFiles2");

				$uploaderInput.on("change", function(e) {
					var src, url = window.URL || window.webkitURL || window.mozURL,
						files = e.target.files;
					for(var i = 0, len = files.length; i < len; ++i) {
						var file = files[i];

						if(url) {
							src = url.createObjectURL(file);
						} else {
							src = e.target.result;
						}

						$uploaderFiles.append($(tmpl.replace('#url#', src)));
					}
				});
				$uploaderFiles.on("click", "li", function() {
					$galleryImg.attr("style", this.getAttribute("style"));
					$gallery.fadeIn(100);
				});
				$gallery.on("click", function() {
					$gallery.fadeOut(100);
				});
			});
		</script>
	</body>

</html>